package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YWStore;
import com.ecoolex.discount.sales.entity.YWStoreExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YWStoreMapper {
    long countByExample(YWStoreExample example);

    int deleteByExample(YWStoreExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YWStore record);

    int insertSelective(@Param("record") YWStore record, @Param("selective") YWStore.Column ... selective);

    YWStore selectOneByExample(YWStoreExample example);

    List<YWStore> selectByExample(YWStoreExample example);

    YWStore selectByPrimaryKey(Long id);

    YWStore selectByPrimaryKeyWithLogicalDelete(@Param("id") Long id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YWStore record, @Param("example") YWStoreExample example, @Param("selective") YWStore.Column ... selective);

    int updateByExample(@Param("record") YWStore record, @Param("example") YWStoreExample example);

    int updateByPrimaryKeySelective(@Param("record") YWStore record, @Param("selective") YWStore.Column ... selective);

    int updateByPrimaryKey(YWStore record);

    int batchInsert(@Param("list") List<YWStore> list);

    int batchInsertSelective(@Param("list") List<YWStore> list, @Param("selective") YWStore.Column ... selective);

    int logicalDeleteByExample(@Param("example") YWStoreExample example);

    int logicalDeleteByPrimaryKey(Long id);
}